<?php
	$data = array('administrator_list', 'article_lists', 'siteInformation', 'users_list', 'article_classify','menu_list');

	if(isset($_GET['param'])){

		if(!in_array($_GET['param'], $data)){
		
			header('location:./index.php?param=middle');		
		}
	}else{

		header('location:./index.php?param=middle');
	}

	$param = $_GET['param'];

	$url = "./index.php?param=".$param;

?>
<!DOCTYPE html>
<html>
<head>
	<title></title>
	<link rel="stylesheet" type="text/css" href="./public/css/base.css">
	<link rel="stylesheet" type="text/css" href="./public/css/delayJump.css">
</head>
<body>
	<div class="myJump_box">
		<div class="jumpCenter">
			<div class="jump_title">恭喜你，操作成功啦！</div>

			<div class="jump_middle"><p>正在努力加载&nbsp<span id="seconds">3</span>&nbsp秒后跳转&nbsp<a id="link" href="<?php echo $url?>">立即跳转</a></p></div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	var url = document.getElementById('link').href,
		seconds = document.getElementById('seconds');

	// 截取字符串 URL
	var url = '.' + url.substring(url.indexOf('/index', 0), url.length);

	var num = 3;
	setInterval(function(){

		num --;

		if(num < 0){

			location.href = url;
		}else{

			seconds.innerHTML = num;
		}

	}, 1000);
</script>